package com.wulijie.memento;

/**
 * @Author cui
 * @Data
 */
public class Client {
    public static void main(String[] args) {
        GameRole gameRole = new GameRole(100, 100);
        Caretaker caretaker = new Caretaker(gameRole.saveRole());
        gameRole.display();

        System.out.println("--------------");

        gameRole.setV1(1);
        gameRole.setV2(5);
        gameRole.display();
        System.out.println("-------------");

        gameRole.getLastR(caretaker.getMemento());
        gameRole.display();

    }
}
